package cn.simon.mapper;

import cn.simon.model.Orders;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrdersMapper<Orders> extends BaseMapper<Orders> {

    List<Orders> getOrderAll(Page page);


    List<Orders> getOrderByUserId(Page page,@Param("userId") Integer userId);
    List<Orders> getSellerOrder(Page page, @Param("sellerId") Integer sellerId,@Param("state") Integer state);

    int insert(Orders record);

    int insertSelective(Orders record);

    Orders selectByPrimaryKey(Integer orderId);

    int updateByPrimaryKeySelective(Orders record);

    int updateByPrimaryKey(Orders record);
}